package earogya.pharmacy.patient.ws;

import java.io.IOException;

import ca.uhn.hl7v2.HL7Exception;
import earogya.pharmacy.patient.ws.HL7MessageHandler;

public class PatientServiceInterface {

	public String patientTreatmentMessage(String message) throws HL7Exception,
			IOException {

		HL7MessageHandler h = new HL7MessageHandler();
		String newMessage=this.modifyMessage(message);
		String ack=h.parser(newMessage);
		return ack;
	}

	private String modifyMessage(String message) {
		String newMessage = null;
		newMessage = message.replaceAll("\n", "\r");
		return newMessage;
	}
}
